/*
 * XML Type:  PresentmentDeliveryRequestMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PresentmentDeliveryRequestMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PresentmentDeliveryRequestMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PresentmentDeliveryRequestMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractRequestMessageSetImpl implements net.ofx.types.x2003.x04.PresentmentDeliveryRequestMessageSetV1
{
    
    public PresentmentDeliveryRequestMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PRESLISTTRNRQ$0 = 
        new javax.xml.namespace.QName("", "PRESLISTTRNRQ");
    private static final javax.xml.namespace.QName PRESGRPACCTINFOTRNRQ$2 = 
        new javax.xml.namespace.QName("", "PRESGRPACCTINFOTRNRQ");
    private static final javax.xml.namespace.QName PRESDETAILTRNRQ$4 = 
        new javax.xml.namespace.QName("", "PRESDETAILTRNRQ");
    private static final javax.xml.namespace.QName BILLTBLSTRUCTTRNRQ$6 = 
        new javax.xml.namespace.QName("", "BILLTBLSTRUCTTRNRQ");
    private static final javax.xml.namespace.QName PRESNOTIFYTRNRQ$8 = 
        new javax.xml.namespace.QName("", "PRESNOTIFYTRNRQ");
    private static final javax.xml.namespace.QName BILLSTATUSMODTRNRQ$10 = 
        new javax.xml.namespace.QName("", "BILLSTATUSMODTRNRQ");
    private static final javax.xml.namespace.QName PRESMAILSYNCRQ$12 = 
        new javax.xml.namespace.QName("", "PRESMAILSYNCRQ");
    private static final javax.xml.namespace.QName PRESMAILTRNRQ$14 = 
        new javax.xml.namespace.QName("", "PRESMAILTRNRQ");
    
    
    /**
     * Gets array of all "PRESLISTTRNRQ" elements
     */
    public net.ofx.types.x2003.x04.PresentmentListTransactionRequest[] getPRESLISTTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PRESLISTTRNRQ$0, targetList);
            net.ofx.types.x2003.x04.PresentmentListTransactionRequest[] result = new net.ofx.types.x2003.x04.PresentmentListTransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "PRESLISTTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentListTransactionRequest getPRESLISTTRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentListTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentListTransactionRequest)get_store().find_element_user(PRESLISTTRNRQ$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "PRESLISTTRNRQ" element
     */
    public int sizeOfPRESLISTTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESLISTTRNRQ$0);
        }
    }
    
    /**
     * Sets array of all "PRESLISTTRNRQ" element
     */
    public void setPRESLISTTRNRQArray(net.ofx.types.x2003.x04.PresentmentListTransactionRequest[] preslisttrnrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(preslisttrnrqArray, PRESLISTTRNRQ$0);
        }
    }
    
    /**
     * Sets ith "PRESLISTTRNRQ" element
     */
    public void setPRESLISTTRNRQArray(int i, net.ofx.types.x2003.x04.PresentmentListTransactionRequest preslisttrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentListTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentListTransactionRequest)get_store().find_element_user(PRESLISTTRNRQ$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(preslisttrnrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "PRESLISTTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentListTransactionRequest insertNewPRESLISTTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentListTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentListTransactionRequest)get_store().insert_element_user(PRESLISTTRNRQ$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "PRESLISTTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentListTransactionRequest addNewPRESLISTTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentListTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentListTransactionRequest)get_store().add_element_user(PRESLISTTRNRQ$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "PRESLISTTRNRQ" element
     */
    public void removePRESLISTTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESLISTTRNRQ$0, i);
        }
    }
    
    /**
     * Gets array of all "PRESGRPACCTINFOTRNRQ" elements
     */
    public net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest[] getPRESGRPACCTINFOTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PRESGRPACCTINFOTRNRQ$2, targetList);
            net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest[] result = new net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "PRESGRPACCTINFOTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest getPRESGRPACCTINFOTRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest)get_store().find_element_user(PRESGRPACCTINFOTRNRQ$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "PRESGRPACCTINFOTRNRQ" element
     */
    public int sizeOfPRESGRPACCTINFOTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESGRPACCTINFOTRNRQ$2);
        }
    }
    
    /**
     * Sets array of all "PRESGRPACCTINFOTRNRQ" element
     */
    public void setPRESGRPACCTINFOTRNRQArray(net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest[] presgrpacctinfotrnrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(presgrpacctinfotrnrqArray, PRESGRPACCTINFOTRNRQ$2);
        }
    }
    
    /**
     * Sets ith "PRESGRPACCTINFOTRNRQ" element
     */
    public void setPRESGRPACCTINFOTRNRQArray(int i, net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest presgrpacctinfotrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest)get_store().find_element_user(PRESGRPACCTINFOTRNRQ$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(presgrpacctinfotrnrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "PRESGRPACCTINFOTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest insertNewPRESGRPACCTINFOTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest)get_store().insert_element_user(PRESGRPACCTINFOTRNRQ$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "PRESGRPACCTINFOTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest addNewPRESGRPACCTINFOTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentGroupAccountInfoTransactionRequest)get_store().add_element_user(PRESGRPACCTINFOTRNRQ$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "PRESGRPACCTINFOTRNRQ" element
     */
    public void removePRESGRPACCTINFOTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESGRPACCTINFOTRNRQ$2, i);
        }
    }
    
    /**
     * Gets array of all "PRESDETAILTRNRQ" elements
     */
    public net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest[] getPRESDETAILTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PRESDETAILTRNRQ$4, targetList);
            net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest[] result = new net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "PRESDETAILTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest getPRESDETAILTRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest)get_store().find_element_user(PRESDETAILTRNRQ$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "PRESDETAILTRNRQ" element
     */
    public int sizeOfPRESDETAILTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESDETAILTRNRQ$4);
        }
    }
    
    /**
     * Sets array of all "PRESDETAILTRNRQ" element
     */
    public void setPRESDETAILTRNRQArray(net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest[] presdetailtrnrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(presdetailtrnrqArray, PRESDETAILTRNRQ$4);
        }
    }
    
    /**
     * Sets ith "PRESDETAILTRNRQ" element
     */
    public void setPRESDETAILTRNRQArray(int i, net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest presdetailtrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest)get_store().find_element_user(PRESDETAILTRNRQ$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(presdetailtrnrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "PRESDETAILTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest insertNewPRESDETAILTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest)get_store().insert_element_user(PRESDETAILTRNRQ$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "PRESDETAILTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest addNewPRESDETAILTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDetailTransactionRequest)get_store().add_element_user(PRESDETAILTRNRQ$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "PRESDETAILTRNRQ" element
     */
    public void removePRESDETAILTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESDETAILTRNRQ$4, i);
        }
    }
    
    /**
     * Gets array of all "BILLTBLSTRUCTTRNRQ" elements
     */
    public net.ofx.types.x2003.x04.BillTableStructureTransactionRequest[] getBILLTBLSTRUCTTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(BILLTBLSTRUCTTRNRQ$6, targetList);
            net.ofx.types.x2003.x04.BillTableStructureTransactionRequest[] result = new net.ofx.types.x2003.x04.BillTableStructureTransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "BILLTBLSTRUCTTRNRQ" element
     */
    public net.ofx.types.x2003.x04.BillTableStructureTransactionRequest getBILLTBLSTRUCTTRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillTableStructureTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.BillTableStructureTransactionRequest)get_store().find_element_user(BILLTBLSTRUCTTRNRQ$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "BILLTBLSTRUCTTRNRQ" element
     */
    public int sizeOfBILLTBLSTRUCTTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BILLTBLSTRUCTTRNRQ$6);
        }
    }
    
    /**
     * Sets array of all "BILLTBLSTRUCTTRNRQ" element
     */
    public void setBILLTBLSTRUCTTRNRQArray(net.ofx.types.x2003.x04.BillTableStructureTransactionRequest[] billtblstructtrnrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(billtblstructtrnrqArray, BILLTBLSTRUCTTRNRQ$6);
        }
    }
    
    /**
     * Sets ith "BILLTBLSTRUCTTRNRQ" element
     */
    public void setBILLTBLSTRUCTTRNRQArray(int i, net.ofx.types.x2003.x04.BillTableStructureTransactionRequest billtblstructtrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillTableStructureTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.BillTableStructureTransactionRequest)get_store().find_element_user(BILLTBLSTRUCTTRNRQ$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(billtblstructtrnrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "BILLTBLSTRUCTTRNRQ" element
     */
    public net.ofx.types.x2003.x04.BillTableStructureTransactionRequest insertNewBILLTBLSTRUCTTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillTableStructureTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.BillTableStructureTransactionRequest)get_store().insert_element_user(BILLTBLSTRUCTTRNRQ$6, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "BILLTBLSTRUCTTRNRQ" element
     */
    public net.ofx.types.x2003.x04.BillTableStructureTransactionRequest addNewBILLTBLSTRUCTTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillTableStructureTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.BillTableStructureTransactionRequest)get_store().add_element_user(BILLTBLSTRUCTTRNRQ$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "BILLTBLSTRUCTTRNRQ" element
     */
    public void removeBILLTBLSTRUCTTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BILLTBLSTRUCTTRNRQ$6, i);
        }
    }
    
    /**
     * Gets array of all "PRESNOTIFYTRNRQ" elements
     */
    public net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest[] getPRESNOTIFYTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PRESNOTIFYTRNRQ$8, targetList);
            net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest[] result = new net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "PRESNOTIFYTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest getPRESNOTIFYTRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest)get_store().find_element_user(PRESNOTIFYTRNRQ$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "PRESNOTIFYTRNRQ" element
     */
    public int sizeOfPRESNOTIFYTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESNOTIFYTRNRQ$8);
        }
    }
    
    /**
     * Sets array of all "PRESNOTIFYTRNRQ" element
     */
    public void setPRESNOTIFYTRNRQArray(net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest[] presnotifytrnrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(presnotifytrnrqArray, PRESNOTIFYTRNRQ$8);
        }
    }
    
    /**
     * Sets ith "PRESNOTIFYTRNRQ" element
     */
    public void setPRESNOTIFYTRNRQArray(int i, net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest presnotifytrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest)get_store().find_element_user(PRESNOTIFYTRNRQ$8, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(presnotifytrnrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "PRESNOTIFYTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest insertNewPRESNOTIFYTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest)get_store().insert_element_user(PRESNOTIFYTRNRQ$8, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "PRESNOTIFYTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest addNewPRESNOTIFYTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentNotifyTransactionRequest)get_store().add_element_user(PRESNOTIFYTRNRQ$8);
            return target;
        }
    }
    
    /**
     * Removes the ith "PRESNOTIFYTRNRQ" element
     */
    public void removePRESNOTIFYTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESNOTIFYTRNRQ$8, i);
        }
    }
    
    /**
     * Gets array of all "BILLSTATUSMODTRNRQ" elements
     */
    public net.ofx.types.x2003.x04.BillStatusModTransactionRequest[] getBILLSTATUSMODTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(BILLSTATUSMODTRNRQ$10, targetList);
            net.ofx.types.x2003.x04.BillStatusModTransactionRequest[] result = new net.ofx.types.x2003.x04.BillStatusModTransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "BILLSTATUSMODTRNRQ" element
     */
    public net.ofx.types.x2003.x04.BillStatusModTransactionRequest getBILLSTATUSMODTRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillStatusModTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.BillStatusModTransactionRequest)get_store().find_element_user(BILLSTATUSMODTRNRQ$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "BILLSTATUSMODTRNRQ" element
     */
    public int sizeOfBILLSTATUSMODTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BILLSTATUSMODTRNRQ$10);
        }
    }
    
    /**
     * Sets array of all "BILLSTATUSMODTRNRQ" element
     */
    public void setBILLSTATUSMODTRNRQArray(net.ofx.types.x2003.x04.BillStatusModTransactionRequest[] billstatusmodtrnrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(billstatusmodtrnrqArray, BILLSTATUSMODTRNRQ$10);
        }
    }
    
    /**
     * Sets ith "BILLSTATUSMODTRNRQ" element
     */
    public void setBILLSTATUSMODTRNRQArray(int i, net.ofx.types.x2003.x04.BillStatusModTransactionRequest billstatusmodtrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillStatusModTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.BillStatusModTransactionRequest)get_store().find_element_user(BILLSTATUSMODTRNRQ$10, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(billstatusmodtrnrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "BILLSTATUSMODTRNRQ" element
     */
    public net.ofx.types.x2003.x04.BillStatusModTransactionRequest insertNewBILLSTATUSMODTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillStatusModTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.BillStatusModTransactionRequest)get_store().insert_element_user(BILLSTATUSMODTRNRQ$10, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "BILLSTATUSMODTRNRQ" element
     */
    public net.ofx.types.x2003.x04.BillStatusModTransactionRequest addNewBILLSTATUSMODTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillStatusModTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.BillStatusModTransactionRequest)get_store().add_element_user(BILLSTATUSMODTRNRQ$10);
            return target;
        }
    }
    
    /**
     * Removes the ith "BILLSTATUSMODTRNRQ" element
     */
    public void removeBILLSTATUSMODTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BILLSTATUSMODTRNRQ$10, i);
        }
    }
    
    /**
     * Gets array of all "PRESMAILSYNCRQ" elements
     */
    public net.ofx.types.x2003.x04.PresentmentMailSyncRequest[] getPRESMAILSYNCRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PRESMAILSYNCRQ$12, targetList);
            net.ofx.types.x2003.x04.PresentmentMailSyncRequest[] result = new net.ofx.types.x2003.x04.PresentmentMailSyncRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "PRESMAILSYNCRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentMailSyncRequest getPRESMAILSYNCRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentMailSyncRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentMailSyncRequest)get_store().find_element_user(PRESMAILSYNCRQ$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "PRESMAILSYNCRQ" element
     */
    public int sizeOfPRESMAILSYNCRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESMAILSYNCRQ$12);
        }
    }
    
    /**
     * Sets array of all "PRESMAILSYNCRQ" element
     */
    public void setPRESMAILSYNCRQArray(net.ofx.types.x2003.x04.PresentmentMailSyncRequest[] presmailsyncrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(presmailsyncrqArray, PRESMAILSYNCRQ$12);
        }
    }
    
    /**
     * Sets ith "PRESMAILSYNCRQ" element
     */
    public void setPRESMAILSYNCRQArray(int i, net.ofx.types.x2003.x04.PresentmentMailSyncRequest presmailsyncrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentMailSyncRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentMailSyncRequest)get_store().find_element_user(PRESMAILSYNCRQ$12, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(presmailsyncrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "PRESMAILSYNCRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentMailSyncRequest insertNewPRESMAILSYNCRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentMailSyncRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentMailSyncRequest)get_store().insert_element_user(PRESMAILSYNCRQ$12, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "PRESMAILSYNCRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentMailSyncRequest addNewPRESMAILSYNCRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentMailSyncRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentMailSyncRequest)get_store().add_element_user(PRESMAILSYNCRQ$12);
            return target;
        }
    }
    
    /**
     * Removes the ith "PRESMAILSYNCRQ" element
     */
    public void removePRESMAILSYNCRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESMAILSYNCRQ$12, i);
        }
    }
    
    /**
     * Gets array of all "PRESMAILTRNRQ" elements
     */
    public net.ofx.types.x2003.x04.PresentmentMailTransactionRequest[] getPRESMAILTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PRESMAILTRNRQ$14, targetList);
            net.ofx.types.x2003.x04.PresentmentMailTransactionRequest[] result = new net.ofx.types.x2003.x04.PresentmentMailTransactionRequest[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "PRESMAILTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentMailTransactionRequest getPRESMAILTRNRQArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentMailTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentMailTransactionRequest)get_store().find_element_user(PRESMAILTRNRQ$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "PRESMAILTRNRQ" element
     */
    public int sizeOfPRESMAILTRNRQArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESMAILTRNRQ$14);
        }
    }
    
    /**
     * Sets array of all "PRESMAILTRNRQ" element
     */
    public void setPRESMAILTRNRQArray(net.ofx.types.x2003.x04.PresentmentMailTransactionRequest[] presmailtrnrqArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(presmailtrnrqArray, PRESMAILTRNRQ$14);
        }
    }
    
    /**
     * Sets ith "PRESMAILTRNRQ" element
     */
    public void setPRESMAILTRNRQArray(int i, net.ofx.types.x2003.x04.PresentmentMailTransactionRequest presmailtrnrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentMailTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentMailTransactionRequest)get_store().find_element_user(PRESMAILTRNRQ$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(presmailtrnrq);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "PRESMAILTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentMailTransactionRequest insertNewPRESMAILTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentMailTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentMailTransactionRequest)get_store().insert_element_user(PRESMAILTRNRQ$14, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "PRESMAILTRNRQ" element
     */
    public net.ofx.types.x2003.x04.PresentmentMailTransactionRequest addNewPRESMAILTRNRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentMailTransactionRequest target = null;
            target = (net.ofx.types.x2003.x04.PresentmentMailTransactionRequest)get_store().add_element_user(PRESMAILTRNRQ$14);
            return target;
        }
    }
    
    /**
     * Removes the ith "PRESMAILTRNRQ" element
     */
    public void removePRESMAILTRNRQ(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESMAILTRNRQ$14, i);
        }
    }
}
